﻿using System.Globalization;
using System.Windows.Data;

namespace Scover.WinClean.View.Converters;

public sealed class BooleanInvertConverter : IValueConverter
{
    public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture) => !(bool)value.NotNull();

    public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) => !(bool)value.NotNull();
}